package principle.prototype.deepClone;

/**
 * @author malguy-wang sir
 * @create ---
 */
public class Client {
    public static void main(String[] args) throws Exception{
        DeepProtoType p = new DeepProtoType();
        p.name="A";
        p.deepCloneableTarget = new DeepCloneableTarget("B","Bclass");

        DeepProtoType p1 = (DeepProtoType) p.deepClone();
        System.out.println(p.deepCloneableTarget.hashCode());
        System.out.println(p1.deepCloneableTarget.hashCode());
    }
}
